home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / dejagnu.lha / dejagnu-1.0.1 / tcl / configure.in < prev    next >
Text File  |  1993-05-05  |  1KB  |  45 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_INIT(tcl.h)
  3. AC_PROG_INSTALL
  4. AC_PROG_RANLIB
  5. echo checking for pid_t in sys/types.h
  6. AC_HEADER_EGREP(pid_t, sys/types.h, AC_DEFINE(TCL_PID_T, 1), AC_DEFINE(TCL_PID_T, 0))
  7. AC_STDC_HEADERS
  8. AC_UNISTD_H
  9. AC_HEADER_CHECK(dirent.h, AC_DEFINE(HAVE_DIRENT))
  10.  
  11.  
  12. AC_REPLACE_FUNCS(opendir strerror strstr strtod strtol)
  13. AC_FUNC_CHECK(getwd,AC_DEFINE(TCL_GETWD,1),AC_DEFINE(TCL_GETWD,0))
  14. AC_FUNC_CHECK(gettimeofday,AC_DEFINE(TCL_GETTOD,1),AC_DEFINE(TCL_GETTOD,0))
  15.  
  16. AC_TEST_PROGRAM([ /* this program taken from compat/teststrtoul.c */
  17. extern int strtoul();
  18. int main()
  19. {
  20.     char *string = "0";
  21.     char *term;
  22.     int value;
  23.     value = strtoul(string, &term, 0);
  24.     if ((value != 0) || (term != (string+1))) {
  25.         exit(1);
  26.     }
  27.     exit(0);
  28. }], , [LIBOBJS="$LIBOBJS strtoul.o"])
  29.  
  30. AC_COMPILE_CHECK([union wait], [#include <sys/types.h> 
  31. #include <sys/wait.h>], [ /* this program taken from compat/testwait.c */
  32. /* This code is very tricky, mostly because of weirdness in HP-UX
  33.  * where "union wait" is defined in both the BSD and SYS-V
  34.  * environments.  Supposedly the WIFEXITED business will do the
  35.  * right thing... */
  36. union wait x;
  37. WIFEXITED(x);               /* Generates compiler error if WIFEXITED
  38.                                  * uses an int. */
  39. return 0;
  40. ], AC_DEFINE(TCL_UNION_WAIT,1), AC_DEFINE(TCL_UNION_WAIT,0))
  41.  
  42. AC_CHAR_UNSIGNED
  43. AC_CONST
  44. AC_OUTPUT(Makefile)
  45.